import $axios from '@/utils/axios'

export default {
  DictList(params?: object): Promise<CommonObjectType<string>> {
    return $axios.post('dm/api/sys/userorg/add', params)
  },
  DictAdd(params?: object): Promise<CommonObjectType<string>> {
    return $axios.post('dm/api/sys/userorg/add', params)
  },
  DictDel(params?: object): Promise<CommonObjectType<string>> {
    return $axios.delete('dm/api/sys/userorg/del', params)
  },
  DictEdit(params?: object): Promise<CommonObjectType<string>> {
    return $axios.put('dm/api/sys/userorg/update', params)
  },
  // userOrgDetail(params?: object): Promise<CommonObjectType<string>> {
  //   return $axios.get('dm/api/sys/user/detail', params)
  // },
}
